﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="TopNews.ascx.cs" Inherits="Indochinaodyssey.UserControl.News.TopNews" %>
<asp:DataList ID="dtlNews" runat="server" DataSourceID="ObjectDataSource1" Width="100%">
    <ItemTemplate>
        <table style="width: 100%;">
            <tr>
                <td style="width: 2px; vertical-align: top;">
                    »
                </td>
                <td>
                    <asp:HyperLink ID="linkTitle" runat="server" CssClass="link-news" NavigateUrl='<%# Eval("Id", "~/NewsDetail.aspx?id={0}") %>'
                        Text='<%# Eval("TieuDe", "{0}")%>'></asp:HyperLink>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetByTop"
    TypeName="IOBusiness.clsBSNews">
    <SelectParameters>
        <asp:Parameter DefaultValue="5" Name="top" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
